import { useStoreSystem } from "../src/store";

export const customComponentResolver = (name: string) => {
	if (!name.match(/^Wh[A-Z]/)) return;
	return { name, from: "@/components" };
};

export const customConstantsResolver = (name: string) => {
	if (!name.match(/^SYS_[A-Z]/)) return;
	return { name, from: "@/constants" };
};

export const customStoreResolver = (name: string) => {
	if (!name.match(/^useStore[A-Z]/)) return;
	return { name, from: "@/store" };
};

export const customApiResolver = (name: string) => {
	if (!name.match(/^(GET|POST|is|utils)[A-Z]/)) return;
	return { name, from: "@/request/apis" };
};
